package com.study.login.entity;

import javax.persistence.*;

/**
 * @Create by ldr.
 * @create 2018-08-29 9:05
 * @Description：身份实体类
 */
@Entity
@Table(name = "identity")
public class Identity {

    /**
     * 身份编号编号
     */
    @Id
    @Column(name = "identityId")
    private int identityId;

    /**
     * 身份名
     */
    @Column(name = "identityName",columnDefinition = "varchar(10) default null COMMENT '身份名'",unique = true)
    private String identityName;

    public int getIdentityId() {
        return identityId;
    }

    public void setIdentityId(int identityId) {
        this.identityId = identityId;
    }

    public String getIdentityName() {
        return identityName;
    }

    public void setIdentityName(String identityName) {
        this.identityName = identityName;
    }

    @Override
    public String toString() {
        return "Identity{" +
                "identityId=" + identityId +
                ", identityName='" + identityName + '\'' +
                '}';
    }
}
